var bb  =  require('../module/inde')



const express = require('express');
const router = express.Router();


router.get('/search',(req,res)=>{
    return Promise.resolve(bb.create({name:"建建哥"}))
    .then(r=>{
        res.json({code:200,msg:"数据储存成功",data:r})
    })
    .catch(err=>{
        res.json({code:101,msg:"数据储存失败"}) 
    })
})


module.exports=router









